package com.javaee.service.user;

import com.javaee.entity.Doctor;
import com.javaee.entity.Mzgh;
import org.springframework.ui.Model;

import java.util.List;
import java.util.Map;

public interface AppointmentService {
    public List<Doctor> findAll();
    public  List<Doctor> search(String mykey,String weekday);
    public  List<Doctor> searchfromall(String mykey);
    public int selectCountDoctor();
    public  int selectCount(int Uid);
    public  List<Map<String, Object>>selectMyMzghByPage(int startIndex, int perPageSize, int Uid);
    public int deleteMzgh(int id);
    public int updatePlan(int dId,String weekday);
    public Doctor findDoctorById(int dId);
    public int updateMyBalance(int Uid,double fee);
    public int selectCountByday(String weekday);
    public List<Doctor> findDoctorByPage(int startIndex, int perPageSize,String weekday );
    public int updatePlanReduce(int dId,String weekday);
    public int ReduceMyBalance(int Uid, double fee);
   public int insertMzgh(Mzgh mzgh);
    public Mzgh findMzghById(int id);

}
